package com.bnq.face

class FaceHandler {

    companion object{

        init {
            System.loadLibrary("lib-face")
        }

        @JvmStatic
        external fun getStringForNative():String

        @JvmStatic
        external fun computerBlurry(path:String):String

        @JvmStatic
        external fun computerBlurry2(bytes:ByteArray):String

        @JvmStatic
        private external fun faceDetect(bytes: ByteArray,width:Int,height:Int,miniThresh:Double, maxThresh:Double, blueThresh:Double, iouNormal:Double,iouInter:Double,
                                        TLXRatio:Double,TLYRatio:Double,RBXRatio:Double,RBYRatio:Double):FaceResult

        fun faceRecognition(bytes: ByteArray,miniThresh:Double, maxThresh:Double, blueThresh:Double, iouNormal:Double,iouInter:Double,
                            TLXRatio:Double,TLYRatio:Double,RBXRatio:Double,RBYRatio:Double):FaceResult{
            return faceDetect(bytes,1280,720,miniThresh,maxThresh,blueThresh,iouNormal,iouInter,TLXRatio,TLYRatio,RBXRatio,RBYRatio)
        }
    }

}